﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace EcoSystem
{
    public interface IFileResourceAppService : ICrudAppService<
        FileResourceDto,
        Guid,
        GetFileResourceInput,
        CreateOrUpdateFileResourceDto,
        CreateOrUpdateFileResourceDto>
    {
        /// <summary>
        /// 获取所有
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public Task<List<FileResourceDto>> GetAllListAsync(GetFileResourceInput input);

        /// <summary>
        /// 上传资源文件
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public Task<FileResourceDto> UploadFileAsync(UploadFileResourceInputDto input);

        /// <summary>
        /// 根据资源名称获取信息
        /// </summary>
        /// <param name="objectName"></param>
        /// <returns></returns>
        public Task<FileResourceDto> GetForNameAsync(string objectName);
    }
}
